/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function Ocultar(obj) {
    alert('Entra');
    var a=document.getElementById(obj);
    a.style.display="none";
  $(a).hide('slow', function() {
    alert('Animation complete.');
  });
}
function Ocultar_Preg(obj) {
    //alert('Entra');
    var a=document.getElementById(obj);
    //a.style.display="none";
  $(a).hide("slow");
}
function Mostrar_Preg(obj) {
    //alert('Entra');
    var a=document.getElementById(obj);
    //a.style.display="none";
  $(a).show("slow");
}
function show_div(div_name) {
alert('ok');
var allDivs = document.getElementsByTagName(div_name);
for(var i=0;i<allDivs.length;i++){
 allDivs[i].style.display="none";
 //allDivs[i].style.visibility = 'hidden';

}
}
function st(div,cla) {
/*$('#'+div).hide('slow', function() {
    alert('Animation complete.');
  });*/
    document.getElementById('Selcla').innerHTML="<h2>"+cla+"</h2>"
    var tm=document.getElementById('NClas').value;

    for(x=1;x<=tm;x++)
        {
            $('.d'+x).hide();
        }

  $('.'+div).show();
}
function resp(ob,obj2,obj3,rep) {
    var obj=document.getElementById(ob)
    obj.src=obj2.src;
    var resp=document.getElementById(obj3).rows[0].cells[0].childNodes[0];
    resp.value=rep;
    //alert(resp.value);


    //obj.src='Imagenes/Rojo.png';
}
function enviar_inf()
{
    var resp=document.getElementsByName("Res");
    var str="";
    for(x=0;x<resp.length;x++)
        {
            str=str+resp[x].value;
        }
        alert(str);
}



